import React from 'react'
import { Sticky, NavBar } from 'react-vant';
import {useNavigate} from 'react-router-dom'
import Socket from './Litaotian'
export default function Jiemian() {
  const navigate = useNavigate()
  return (
    <>  
        <Sticky>
          <NavBar
              title="对话界面"
              leftText="返回"
              onClickLeft={() => navigate(-1)}
          />
        </Sticky>
        <Socket username={localStorage.getItem('username')} />
    </>
  )
}
